package cn.xf.districonfig.client.annotation;

import cn.xf.districonfig.client.register.ConfigClientRegistar;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Scope;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Scope("refreshScope")
@Import(ConfigClientRegistar.class)
public @interface EnableConfigClient {

    String mode() default "rpc";
}
